
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        {if condition="checkPath('Ad/pos')"}
        <li  class="active"><a href="{:url('Ad/pos')}">广告位管理</a></li>
        {/if}
        {if condition="checkPath('Ad/posAdd')"}
        <li><a href="{:url('Ad/posAdd')}">添加广告位</a></li>
        {/if}
    </ul>



    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>广告位名称</th>
            <th>添加时间</th>
            <th>状态</th>
            <th width="170">操作</th>
        </tr>

        </thead>
        <tbody>

        <?php foreach($list as $v) {
            ?>
            <tr>
                <td>{$v.id}</td>
                <td>{$v.name}</td>
                <td>{$v.create_time}</td>
                <td><?php echo $v['status'] == 1 ? '启用' :'停用';?></td>
                <td>

                </td>
            </tr>
        <?php } ?>
        </tbody>
    </table>
    <div class="text-center">
        {$page}
    </div>
</div>
